<%= render 'public/flash_notice' %>

<div class="row">

  <ol class="breadcrumb">
    <li>招聘管理</li>
    <li>招聘列表</li>
  </ol>

  <table id="posts" class="table table-striped">
    <thead>
      <tr>
        <th>职位</th>
        <th>地点</th>
        <th>人数</th>
        <th>语言</th>
        <th>创建时间</th>
        <th>修改时间</th>
        <th>操作</th>
      </tr>
    </thead>
    <tbody>
    <% @jobs.each do |job| %>
      <tr>
      <td><%= job.position %></td>
      <td><%= job.location %></td>
      <td><%= job.num %></td>
      <td><%= language_for(job.language) %></td>
      <td><%= format_datetime(job.created_at, '%Y-%m-%d %H:%M') %></td>
      <td><%= format_datetime(job.updated_at, '%Y-%m-%d %H:%M') %></td>
      <td class="opts">
        <%= link_to '', [:cpanel, job],class:'icon-eye-open' %>
        <%= link_to '', edit_cpanel_job_path(job),class:'icon-edit' %>
        <%= link_to '', [:cpanel, job], method: :delete, data: { confirm: '确认删除' }, class: 'icon-trash' %>
      </td>
    </tr>
  <% end %>
    </tbody>
  </table>
  <div class="paginate-right-position">
    <%= will_paginate @jobs %>
  </div>
</div>
